package com.itheima.d10_interface;

/**
 * 实现类
 */
public class TennisMan implements SportsMan {
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public void run() {
        System.out.println(this.name+"跑步");
    }

    @Override
    public void compete() {
        System.out.println(this.name+"参加比赛");
    }
}
